import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 线索列表CRUD
export const clueListCRUD = CRUD('/system/clue');

// 分配线索
export function allocationClue(data: Record<string, any>) {
  return request.post({
    url: '/system/clue/allot-clue',
    data,
  });
}

// 审批线索
export function approveClue(data: Record<string, any>) {
  return request.post({
    url: '/system/clue/examine-clue',
    data,
  });
}
